{# Twig
// This file should be in UTF8 without BOM - Accents examples: éèê
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr  |
// +----------------------------------------------------------------------+
// | This file is part of PEEL Shopping 7.2.1, which is subject to an	  |
// | opensource GPL license: you are allowed to customize the code		  |
// | for your own needs, but must keep your changes under GPL			  |
// | More information: https://www.peel.fr/lire/licence-gpl-70.html		  |
// +----------------------------------------------------------------------+
// | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/	  |
// +----------------------------------------------------------------------+
// $Id: admin_formulaire_langue.tpl 44077 2015-02-17 10:20:38Z sdelaporte $
#}<div class="entete">{{ STR_ADMIN_LANGUES_ADD_OR_MODIFY_LANGUAGE }}</div>
<form class="entryform form-inline" role="form" method="post" action="{{ action|escape('html') }}" enctype="multipart/form-data">
	{{ form_token }}
	<input type="hidden" name="mode" value="{{ mode|str_form_value }}" />
	<input type="hidden" name="id" value="{{ id|str_form_value }}" />
	<table class="full_width">
		{% for l in langs %}
		<tr><td colspan="2" class="bloc">{{ STR_ADMIN_LANGUAGES_SECTION_HEADER }} {{ l.lng|upper }}</td></tr>
		<tr>
			<td class="title_label">{{ STR_ADMIN_NAME }} {{ l.lng|upper }}:</td>
			<td style="width:50%"><input type="text" class="form-control" name="nom_{{ l.lng }}" value="{{ l.nom|str_form_value }}" /></td>
		</tr>
		{% endfor %}
		<tr><td colspan="2" class="bloc">{{ STR_ADMIN_VARIOUS_INFORMATION_HEADER }}</td></tr>
		<tr>
			<td class="title_label">{{ STR_ADMIN_LANGUES_FORMAT }}{{ STR_BEFORE_TWO_POINTS }}:</td>
			<td>{% if is_modif %}
				<input type="hidden" name="lang" value="{{ lang|str_form_value }}" />{{ lang|str_form_value }}
			{% else %}
				<input type="text" class="form-control" name="lang" style="width:50px" maxlength="2" value="{{ lang|str_form_value }}" /> {{ STR_ADMIN_LANGUES_CODE_ISO_EXPLAIN }}
				<div class="alert alert-info"><p>{{ STR_ADMIN_LANGUES_CODE_ISO_EXPLAIN }}</p></div>
			{% endif %}
			</td>
		</tr>
		<tr>
			<td class="title_label">{{ STR_ADMIN_LANGUES_FLAG_PATH }}{{ STR_BEFORE_TWO_POINTS }}:</td>
			<td><input style="width: 100%" name="flag" type="text" class="form-control" value="{{ flag|str_form_value }}" /></td>
		</tr>
		<tr>
			<td class="title_label">{{ STR_STATUS }}</td>
			<td>
				<input type="radio" name="etat" value="1"{% if etat == '1' %} checked="checked"{% endif %} /> {{ STR_YES }}&nbsp;
				<input type="radio" name="etat" value="0"{% if etat == '0' or not(etat) %} checked="checked"{% endif %} /> {{ STR_NO }}&nbsp;
				<input type="radio" name="etat" value="-1"{% if etat == '-1' %} checked="checked"{% endif %} /> {{ STR_ADMINISTRATION }}
			</td>
		</tr>
		<tr>
			<td class="title_label">{{ STR_ADMIN_POSITION }}</td>
			<td><input type="number" class="form-control" name="position" style="width:150px" value="{{ position|str_form_value }}" /></td>
		</tr>
		<tr>
			<td class="title_label">{{ STR_ADMIN_LANGUES_URL_REWRITING }}{{ STR_BEFORE_TWO_POINTS }}:</td>
			<td><input style="width: 100%" name="url_rewriting" type="text" class="form-control" value="{{ url_rewriting|str_form_value }}" /></td>
		</tr>
		<tr>
			<td>{{ STR_ADMIN_WEBSITE }}{{ STR_BEFORE_TWO_POINTS }}:</td>
			<td>
				<select class="form-control" name="site_id">
					{{ site_id_select_options }}
				</select>
			</td>
		</tr>
		<tr><td colspan="2" class="center"><p><input class="btn btn-primary" type="submit" value="{{ titre_bouton|str_form_value }}" /></p></td></tr>
	</table>
</form>